ostree.git
7 months agoprepare-root: Rename rootfs loading functions
Colin Walters [Wed, 16 Jul 2025 16:56:49 +0000 (12:56 -0400)]
prepare-root: Rename rootfs loading functions

Prep for moving more functionality there, it's really about
the rootfs, not just composefs.

7 months agoMerge pull request #3470 from cgwalters/build-dist-test-scripts
Colin Walters [Tue, 15 Jul 2025 11:55:26 +0000 (07:55 -0400)]
Merge pull request #3470 from cgwalters/build-dist-test-scripts

build-sys: Always EXTRA_DIST test scripts

7 months agobuild-sys: Always EXTRA_DIST test scripts
Colin Walters [Mon, 14 Jul 2025 19:36:42 +0000 (15:36 -0400)]
build-sys: Always EXTRA_DIST test scripts

Fixes the case of doing `make dist` without some
build features enabled.

Closes: https://github.com/ostreedev/ostree/issues/3469
Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3455 from jmarrero/bindings
Colin Walters [Thu, 10 Jul 2025 16:48:50 +0000 (12:48 -0400)]
Merge pull request #3455 from jmarrero/bindings

rust: Add v2025_3 feature and bump versions

8 months agoMerge pull request #3468 from jmarrero/release-20253
Joseph Marrero Corchado [Thu, 10 Jul 2025 16:23:42 +0000 (12:23 -0400)]
Merge pull request #3468 from jmarrero/release-20253

Release 2025.3

8 months agoconfigure: post-release version bump
Joseph Marrero Corchado [Thu, 10 Jul 2025 14:04:16 +0000 (10:04 -0400)]
configure: post-release version bump

8 months agoRelease 2025.3
Joseph Marrero Corchado [Thu, 10 Jul 2025 14:02:00 +0000 (10:02 -0400)]
Release 2025.3

8 months agoMerge pull request #3310 from igoropaniuk/boot_count
Colin Walters [Thu, 10 Jul 2025 11:24:06 +0000 (07:24 -0400)]
Merge pull request #3310 from igoropaniuk/boot_count

sysroot: Support boot counting for boot entries

8 months agosysroot: Support boot counting for boot entries
Igor Opaniuk [Wed, 11 Sep 2024 16:03:10 +0000 (18:03 +0200)]
sysroot: Support boot counting for boot entries

Add support for boot counting for bootloader entries [1].
The boot counting data is stored in the name of the boot loader entry.
A boot loader entry file name may contain a plus (+) followed by a number.
This may optionally be followed by a minus (-) followed by a second number.
The dot (.) and file name suffix (conf or efi) must immediately follow.

The feature is enabled via sysroot configuration:
[sysroot]
boot-counting-tries=3

Testing:
$ ostree admin deploy 91fc19319be9e79d07159303dff125f40f10e5c25614630dcbed23d95e36f907
Copying /etc changes: 2 modified, 3 removed, 4 added
bootfs is sufficient for calculated new size: 0 bytes
Transaction complete; bootconfig swap: yes; bootversion: boot.0.1, deployment count change: 1

$ ls /boot/loader/entries
ostree-1.conf  ostree-2+3.conf

[1] https://uapi-group.org/specifications/specs/boot_loader_specification/#boot-counting
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3467 from cgwalters/config-set-validate
Joseph Marrero Corchado [Thu, 10 Jul 2025 02:24:04 +0000 (22:24 -0400)]
Merge pull request #3467 from cgwalters/config-set-validate

repo: Add new API to write config with reload+validation

8 months agoMerge pull request #3465 from cgwalters/soft-reboot-kargs-check
Colin Walters [Wed, 9 Jul 2025 22:30:10 +0000 (18:30 -0400)]
Merge pull request #3465 from cgwalters/soft-reboot-kargs-check

Soft reboot kargs check

8 months agorepo: Add new API to write config with reload+validation
Colin Walters [Wed, 9 Jul 2025 22:04:08 +0000 (18:04 -0400)]
repo: Add new API to write config with reload+validation

The `ostree config set` CLI should really disallow
writing invalid values. To implement that, add a new
API that also *reloads* to the new config, and
rolls back on failure.

Closes: https://github.com/ostreedev/ostree/issues/1827
Signed-off-by: Colin Walters <walters@verbum.org>
8 months agosoft-reboot: Check for kernel argument changes
Colin Walters [Wed, 9 Jul 2025 19:21:56 +0000 (15:21 -0400)]
soft-reboot: Check for kernel argument changes

This closes a drift gap possibility.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3463 from cgwalters/ci-bootc-c10s
Colin Walters [Wed, 9 Jul 2025 18:01:50 +0000 (14:01 -0400)]
Merge pull request #3463 from cgwalters/ci-bootc-c10s

ci: Expand bootc testing to cover c10s

8 months agorust-bindings: update for soft-reboot
Joseph Marrero Corchado [Mon, 30 Jun 2025 19:21:34 +0000 (15:21 -0400)]
rust-bindings: update for soft-reboot

8 months agorust: Add v2025_3 feature and bump versions
Joseph Marrero Corchado [Fri, 27 Jun 2025 15:16:57 +0000 (11:16 -0400)]
rust: Add v2025_3 feature and bump versions

8 months agotests: Verify soft reboot with changed kernel state
Colin Walters [Wed, 9 Jul 2025 17:28:18 +0000 (13:28 -0400)]
tests: Verify soft reboot with changed kernel state

8 months agoMerge pull request #3464 from cgwalters/man-drop-authorgroup
Colin Walters [Wed, 9 Jul 2025 13:51:20 +0000 (09:51 -0400)]
Merge pull request #3464 from cgwalters/man-drop-authorgroup

docs: Remove <authorgroup>

8 months agodocs: Remove <authorgroup>
Colin Walters [Tue, 8 Jul 2025 22:26:26 +0000 (18:26 -0400)]
docs: Remove <authorgroup>

We've just been copy pasting this; for some commands it's
true, but others have been written by other people. Most of
the commands just call into the library code which is written
by various people.

Because it isn't really accurate, just drop it.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3460 from cgwalters/soft-reboot-followups3
Colin Walters [Tue, 8 Jul 2025 17:03:34 +0000 (13:03 -0400)]
Merge pull request #3460 from cgwalters/soft-reboot-followups3

soft-reboot: Many changes

8 months agosoft-reboot: Many changes
Colin Walters [Mon, 30 Jun 2025 21:07:18 +0000 (17:07 -0400)]
soft-reboot: Many changes

- Add --reboot and --reset arguments
- Don't compile on centos stream 9 (missing `open_tree` glibc wrapper)
  as the functionality isn't supported by systemd there; that said
  we should also do dynamic detection
- Fix /sysroot writability
- If we target as soft reboot a deployment
  *other* than the staged one, automatically clear the staged
  deployment as otherwise the semantics are too confusing.
- Rename the APIs so they all say `soft_reboot` and not `next_root`

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoci: Expand bootc testing to cover c10s
Colin Walters [Tue, 8 Jul 2025 00:50:45 +0000 (20:50 -0400)]
ci: Expand bootc testing to cover c10s

Because it's an active development target.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3461 from cgwalters/sysroot-deploy-cleanup
Colin Walters [Mon, 7 Jul 2025 14:58:54 +0000 (10:58 -0400)]
Merge pull request #3461 from cgwalters/sysroot-deploy-cleanup

deploy: Don't create deployment object before deploying

8 months agodeploy: Don't create deployment object before deploying
Colin Walters [Tue, 1 Jul 2025 18:38:10 +0000 (14:38 -0400)]
deploy: Don't create deployment object before deploying

Just pass the bits of the new deployment we want down into the
checkout function. This lets us reuse the common helper
to init a deployment which now always captures the device/inode.

Followup from previous commit.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3456 from cgwalters/soft-reboot-followups2
Colin Walters [Tue, 1 Jul 2025 18:20:23 +0000 (14:20 -0400)]
Merge pull request #3456 from cgwalters/soft-reboot-followups2

sysroot: Remove now-spurious assertion change from soft reboot changes

8 months agoMerge pull request #3459 from cgwalters/deployments-cache-devino
Colin Walters [Tue, 1 Jul 2025 18:17:05 +0000 (14:17 -0400)]
Merge pull request #3459 from cgwalters/deployments-cache-devino

sysroot: Cache deployment device/inode

8 months agoMerge pull request #3457 from cgwalters/deploy-quiet-systemctl
Colin Walters [Tue, 1 Jul 2025 18:16:34 +0000 (14:16 -0400)]
Merge pull request #3457 from cgwalters/deploy-quiet-systemctl

deploy: Default quiet for forked systemctl

8 months agosysroot: Cache deployment device/inode
Colin Walters [Tue, 1 Jul 2025 14:54:52 +0000 (10:54 -0400)]
sysroot: Cache deployment device/inode

This is a lot cleaner. In particular, it's prep
for having soft reboot finalize at shutdown time, because
we weren't correctly handling the staged deployment in
that case.

To implement this we need to basically stop using
ostree_deployment_new() in most places, and instead ensure that all
callers use this path which cache the device/inode.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agodeploy: Default quiet for forked systemctl
Colin Walters [Mon, 30 Jun 2025 20:34:11 +0000 (16:34 -0400)]
deploy: Default quiet for forked systemctl

I'm checking over the codebase for places we fork children; doing
so from a library means we may end up printing to stdout/stderr
of our caller, which we shouldn't do.

- Also add an error prefix with information about the service
  if we fail

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agosysroot: Remove now-spurious assertion change from soft reboot changes
Colin Walters [Mon, 30 Jun 2025 19:36:32 +0000 (15:36 -0400)]
sysroot: Remove now-spurious assertion change from soft reboot changes

We fixed the bug that caused soft reboot to trip the assertion
here, so revert back to a hard check.

8 months agoMerge pull request #3453 from cgwalters/staged-status-json
Colin Walters [Fri, 27 Jun 2025 17:27:55 +0000 (13:27 -0400)]
Merge pull request #3453 from cgwalters/staged-status-json

status: Add more tests for json

8 months agoMerge pull request #3450 from cgwalters/justfile-more
Colin Walters [Fri, 27 Jun 2025 13:30:26 +0000 (09:30 -0400)]
Merge pull request #3450 from cgwalters/justfile-more

justfile: enhancements

8 months agoMerge pull request #3452 from cgwalters/soft-reboot-followup
Colin Walters [Fri, 27 Jun 2025 13:26:23 +0000 (09:26 -0400)]
Merge pull request #3452 from cgwalters/soft-reboot-followup

status: Add `soft-reboot-target` to JSON

8 months agostatus: Add more tests for json
Colin Walters [Fri, 27 Jun 2025 01:02:03 +0000 (21:02 -0400)]
status: Add more tests for json

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agostatus: Add `soft-reboot-target` to JSON
Colin Walters [Thu, 26 Jun 2025 21:57:58 +0000 (17:57 -0400)]
status: Add `soft-reboot-target` to JSON

It's there in the human readable status.

And update the soft-reboot test suite to assert things via
JSON since it's *way* cleaner.

8 months agoMerge pull request #3420 from jmarrero/builds-soft
Joseph Marrero Corchado [Thu, 26 Jun 2025 21:34:48 +0000 (17:34 -0400)]
Merge pull request #3420 from jmarrero/builds-soft

ot-builtin-admin: Add admin prepare-soft-reboot

8 months agobuild-sys: Move clang-format into justfile
Colin Walters [Wed, 25 Jun 2025 17:39:48 +0000 (13:39 -0400)]
build-sys: Move clang-format into justfile

We don't need a build to run it, it's more appropriate
there.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3451 from cgwalters/emit-json
Colin Walters [Thu, 26 Jun 2025 17:00:04 +0000 (13:00 -0400)]
Merge pull request #3451 from cgwalters/emit-json

status: Add --json output

8 months agoAdd ostree admin prepare-soft-reboot
Colin Walters [Wed, 18 Jun 2025 19:10:53 +0000 (15:10 -0400)]
Add ostree admin prepare-soft-reboot

This adds support for systemd soft reboots.

Closes: https://github.com/ostreedev/ostree/issues/3242
Signed-off-by: Colin Walters <walters@verbum.org>
Co-authored-by: Joseph Marrero Corchado <jmarrero@redhat.com>
Co-authored-by: Mary Strodl <ipadlover8322@gmail.com>
Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoadmin: Expand column for subcommands
Colin Walters [Wed, 25 Jun 2025 18:14:58 +0000 (14:14 -0400)]
admin: Expand column for subcommands

Prep for soft reboot.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoprepare-root: Use tempdir for transient etc backing
Colin Walters [Tue, 24 Jun 2025 21:14:54 +0000 (17:14 -0400)]
prepare-root: Use tempdir for transient etc backing

Prep for soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agostatus: Add --json output
Colin Walters [Thu, 26 Jun 2025 13:59:28 +0000 (09:59 -0400)]
status: Add --json output

This is way long overdue, and will be useful for a variety of things
but is especially motivated by soft reboot testing.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agojsonwrt: Integration fixups
Colin Walters [Thu, 26 Jun 2025 11:52:20 +0000 (07:52 -0400)]
jsonwrt: Integration fixups

This gets the code to build without the rest of util-linux.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoImport jsonwrt code from util-linux
Colin Walters [Thu, 26 Jun 2025 11:48:38 +0000 (07:48 -0400)]
Import jsonwrt code from util-linux

We've had a longstanding need to emit JSON to be friendlier
to shell scripting tools.

I hesitated for (way too long) on which JSON libraries to
use, but actually since we don't need to *parse* JSON,
we only need to omit it, the problem domain is super
simple.

util-linux has simple code for this
https://github.com/util-linux/util-linux/commit/b649ff92d2d91864e85a5bba4c89d52236817d9e

So this commit imports it, but it will need a little massaging
to build.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agojustfile: Accept args, add build-host shortcuts
Colin Walters [Tue, 17 Jun 2025 22:11:46 +0000 (18:11 -0400)]
justfile: Accept args, add build-host shortcuts

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3449 from cgwalters/fix-validate-sig-overwrite
Colin Walters [Wed, 25 Jun 2025 13:24:39 +0000 (09:24 -0400)]
Merge pull request #3449 from cgwalters/fix-validate-sig-overwrite

prepare-root: Fix error overwrite

8 months agoMerge pull request #3448 from cgwalters/refactor-prepare-root-etc
Joseph Marrero Corchado [Wed, 25 Jun 2025 13:24:15 +0000 (09:24 -0400)]
Merge pull request #3448 from cgwalters/refactor-prepare-root-etc

prepare-root: Some prep PRs

8 months agoprepare-root: Move /etc handling into library
Colin Walters [Tue, 24 Jun 2025 20:39:00 +0000 (16:39 -0400)]
prepare-root: Move /etc handling into library

Prep for soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoprepare-root: Fix error overwrite
Colin Walters [Tue, 24 Jun 2025 20:47:14 +0000 (16:47 -0400)]
prepare-root: Fix error overwrite

An AI code review tool spotted incorrect usage of GError. Awesome.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoprepare-root: Move metadata for root transient into lib
Colin Walters [Tue, 24 Jun 2025 20:29:45 +0000 (16:29 -0400)]
prepare-root: Move metadata for root transient into lib

Prep for soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoprepare-root: Move metadata for deployment into otcore
Colin Walters [Tue, 24 Jun 2025 20:08:29 +0000 (16:08 -0400)]
prepare-root: Move metadata for deployment into otcore

- Rename `mount_composefs` to `mount_rootfs` to make a little clearer
  what it does; even though if the rootfs is not composefs we don't
  do anything before.
- But do always unconditionally update the metadata builder with
  the device/inode

Prep for soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3447 from cgwalters/prepare-root-sysroot-prep
Colin Walters [Tue, 24 Jun 2025 18:49:32 +0000 (14:49 -0400)]
Merge pull request #3447 from cgwalters/prepare-root-sysroot-prep

prepare-root: Don't hardcode sysroot

8 months agoprepare-root: Don't hardcode sysroot
Colin Walters [Tue, 24 Jun 2025 15:14:41 +0000 (11:14 -0400)]
prepare-root: Don't hardcode sysroot

Follow to previous change to factor out composefs mounting;
prep for soft reboots.

Signed-off-by: Colin Walters <walters@verbum.org>
8 months agoMerge pull request #3445 from cgwalters/prepare-root-prep
Colin Walters [Tue, 24 Jun 2025 14:35:50 +0000 (10:35 -0400)]
Merge pull request #3445 from cgwalters/prepare-root-prep

prepare-root: Factor out composefs handling into otcore

8 months agoprepare-root: Factor out composefs handling into otcore
Colin Walters [Thu, 19 Jun 2025 11:42:48 +0000 (07:42 -0400)]
prepare-root: Factor out composefs handling into otcore

I'm thinking about creating ostree-prepare-soft-reboot.c.
Prepare for this by factoring out shared helper functions.

8 months agoMerge pull request #3443 from cgwalters/readme-tweak
Colin Walters [Sat, 14 Jun 2025 06:41:22 +0000 (02:41 -0400)]
Merge pull request #3443 from cgwalters/readme-tweak

rust: Tweaks for README.md

8 months agorust: Tweaks for README.md
Colin Walters [Sat, 14 Jun 2025 05:28:22 +0000 (07:28 +0200)]
rust: Tweaks for README.md

Mostly an excuse to publish a new crate to test that
regenerating the docs works.

9 months agoMerge pull request #3439 from cgwalters/update-dockerfile
Colin Walters [Thu, 5 Jun 2025 00:42:06 +0000 (20:42 -0400)]
Merge pull request #3439 from cgwalters/update-dockerfile

ci: Rework Dockerfile, add Justfile and improved testing

9 months agoci: Rework Dockerfile, add Justfile and improved testing
Colin Walters [Fri, 30 May 2025 20:14:36 +0000 (16:14 -0400)]
ci: Rework Dockerfile, add Justfile and improved testing

- Move the Dockerfile to the toplevel as a primary dev entrypoint
- The Justfile is intended especially for agentic AI like
  block/goose or Claude Code as an allowlistable-command entrypoint
- Include attempt at incremental build caching, partially defeated
  by autotools
- Add new tests-unit-container that tests ostree-prepare-root in
  a container

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agotests/libtest: Just use python as a webserver if no libsoup
Colin Walters [Sun, 1 Jun 2025 21:00:01 +0000 (17:00 -0400)]
tests/libtest: Just use python as a webserver if no libsoup

We only have a very few tests that actually need what
we have in ostree-trivial-httpd that supports things like serving
random 500 errors etc.

If we don't have libsoup, then just use a python webserver.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoMerge pull request #3437 from cgwalters/update-dockerfile-prep
Colin Walters [Tue, 3 Jun 2025 22:04:59 +0000 (18:04 -0400)]
Merge pull request #3437 from cgwalters/update-dockerfile-prep

A few buildsystem fixes

9 months agoMerge pull request #3438 from cgwalters/minor-docs
Colin Walters [Tue, 3 Jun 2025 20:35:31 +0000 (16:35 -0400)]
Merge pull request #3438 from cgwalters/minor-docs

docs: Some typo and link fixes

9 months agodocs: Some typo and link fixes
Colin Walters [Tue, 3 Jun 2025 18:48:45 +0000 (14:48 -0400)]
docs: Some typo and link fixes

Found with AI assistance.

Co-authored-by: Etienne Champetier <champetier.etienne@gmail.com>
9 months agoci: Disable soup3 in minimal
Colin Walters [Mon, 2 Jun 2025 21:04:50 +0000 (17:04 -0400)]
ci: Disable soup3 in minimal

Noticed in drive by.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agolibtest: Quiet some output
Colin Walters [Mon, 2 Jun 2025 21:04:34 +0000 (17:04 -0400)]
libtest: Quiet some output

Otherwise there's a lot of test spam.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoci: use srcdir != builddir by default, builddir under target/
Colin Walters [Mon, 2 Jun 2025 20:34:16 +0000 (16:34 -0400)]
ci: use srcdir != builddir by default, builddir under target/

This blends better with docker builds where we have a blanket
ignore of `target` in .dockerignore.

Right now we use git.mk to generate .gitignore and autotools
drop stuff all over the place.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoci: Updates for centos builds
Colin Walters [Fri, 30 May 2025 20:13:45 +0000 (16:13 -0400)]
ci: Updates for centos builds

- Do the modern way to enable the buildroot with crb and epel

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agodockerignore: Add
Colin Walters [Fri, 30 May 2025 20:13:21 +0000 (16:13 -0400)]
dockerignore: Add

This ensures we don't pick up things we shouldn't from the source.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoTurn off gemini summary
Colin Walters [Mon, 2 Jun 2025 17:41:09 +0000 (13:41 -0400)]
Turn off gemini summary

It's way too noisy.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoapidoc: Quiet many warnings
Colin Walters [Fri, 30 May 2025 20:10:22 +0000 (16:10 -0400)]
apidoc: Quiet many warnings

Should have done this long ago, this greatly reduces the spam
in the terminal logs from builds.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoMerge pull request #3435 from jmarrero/prep-indepontent
Colin Walters [Fri, 30 May 2025 14:08:04 +0000 (10:08 -0400)]
Merge pull request #3435 from jmarrero/prep-indepontent

prep patches for: soft-reboot

9 months agoostree-prepare-root: add option processing for kernel arguments
Joseph Marrero Corchado [Thu, 29 May 2025 18:48:50 +0000 (14:48 -0400)]
ostree-prepare-root: add option processing for kernel arguments

In a future soft-reboot feature this will allow us to pass kernel
arguments for the deployment we are going to soft-reboot into.

9 months agoostree-prepare-root: make mkdir calls idempotent
Joseph Marrero Corchado [Thu, 29 May 2025 18:23:00 +0000 (14:23 -0400)]
ostree-prepare-root: make mkdir calls idempotent

9 months agoMerge pull request #3425 from samzeter/unused-proc
Colin Walters [Fri, 23 May 2025 12:55:31 +0000 (08:55 -0400)]
Merge pull request #3425 from samzeter/unused-proc

tests: remove unused import

9 months agotests: remove unused import
Samuel Zeter [Wed, 21 May 2025 00:49:48 +0000 (10:49 +1000)]
tests: remove unused import

Fixes:

warning: unused import: `with_procspawn_tempdir::with_procspawn_tempdir`
  --> src/test.rs:11:9
   |
11 | pub use with_procspawn_tempdir::with_procspawn_tempdir;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
  --> src/insttestmain.rs:9:1
   |
9  | mod test;
   | ^^^^^^^^^
   = note: `#[warn(unused_imports)]` on by default

9 months agoMerge pull request #3430 from cgwalters/rust-update-2
Colin Walters [Thu, 22 May 2025 23:35:08 +0000 (19:35 -0400)]
Merge pull request #3430 from cgwalters/rust-update-2

rust: Also add a feature for v2025_2

9 months agorust: Also add a feature for v2025_2
Colin Walters [Thu, 22 May 2025 22:18:05 +0000 (18:18 -0400)]
rust: Also add a feature for v2025_2

9 months agoMerge pull request #3428 from cgwalters/rust-release
Colin Walters [Thu, 22 May 2025 13:46:34 +0000 (09:46 -0400)]
Merge pull request #3428 from cgwalters/rust-release

rust: Release new minor version

9 months agoMerge pull request #3429 from cgwalters/drop-msrv-check
Colin Walters [Thu, 22 May 2025 13:45:48 +0000 (09:45 -0400)]
Merge pull request #3429 from cgwalters/drop-msrv-check

rust: Drop MSRV job

9 months agorust: Drop MSRV job
Colin Walters [Thu, 22 May 2025 13:24:56 +0000 (13:24 +0000)]
rust: Drop MSRV job

Our MSRV is basically covered by the C9S jobs.

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agorust: Release new minor version
Colin Walters [Thu, 22 May 2025 12:32:17 +0000 (12:32 +0000)]
rust: Release new minor version

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agorust: Release new minor version
Colin Walters [Thu, 22 May 2025 12:32:17 +0000 (12:32 +0000)]
rust: Release new minor version

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoMerge pull request #3422 from cgwalters/rust-update
Colin Walters [Thu, 22 May 2025 12:29:40 +0000 (08:29 -0400)]
Merge pull request #3422 from cgwalters/rust-update

rust: Update to 2025.2

9 months agoMerge pull request #3423 from evan-goode/evan-goode/man-transient
Colin Walters [Thu, 22 May 2025 12:29:13 +0000 (08:29 -0400)]
Merge pull request #3423 from evan-goode/evan-goode/man-transient

man: Document `ostree admin unlock --transient`

9 months agoMerge pull request #3427 from cgwalters/fix-deny
Colin Walters [Thu, 22 May 2025 12:28:41 +0000 (08:28 -0400)]
Merge pull request #3427 from cgwalters/fix-deny

ci: Update deny to v2

9 months agoMerge pull request #3426 from cgwalters/fix-live-tests
Jonathan Lebon [Wed, 21 May 2025 23:04:17 +0000 (19:04 -0400)]
Merge pull request #3426 from cgwalters/fix-live-tests

9 months agoci: build metal and live media in one invocation
Jonathan Lebon [Wed, 21 May 2025 20:59:15 +0000 (16:59 -0400)]
ci: build metal and live media in one invocation

This is slightly more efficient because we enter supermin once/invoke
osbuild once.

9 months agoci: Update deny to v2
Colin Walters [Wed, 21 May 2025 13:30:01 +0000 (13:30 +0000)]
ci: Update deny to v2

It looks like the v1 action due to a crate bump
started hard requiring a newer rust?

Signed-off-by: Colin Walters <walters@verbum.org>
9 months agoci: Drop --fast from buildextend-live
Colin Walters [Tue, 20 May 2025 18:42:46 +0000 (18:42 +0000)]
ci: Drop --fast from buildextend-live

This got dropped apparently with the osbuild rewrite.

9 months agoman: Document `ostree admin unlock --transient`
Evan Goode [Mon, 19 May 2025 21:08:11 +0000 (21:08 +0000)]
man: Document `ostree admin unlock --transient`

Signed-off-by: Evan Goode <mail@evangoo.de>
9 months agorust: Update to 2025.2
Colin Walters [Fri, 16 May 2025 20:19:48 +0000 (16:19 -0400)]
rust: Update to 2025.2

I want the set_null_log in particular.

10 months agoMerge pull request #3405 from cgwalters/detect-vfat-boot
Colin Walters [Wed, 30 Apr 2025 22:45:15 +0000 (18:45 -0400)]
Merge pull request #3405 from cgwalters/detect-vfat-boot

sysroot: Detect early on when /boot is on vfat

10 months agoMerge pull request #3413 from ricardosalveti/aboot
Eric Curtin [Wed, 30 Apr 2025 20:41:56 +0000 (21:41 +0100)]
Merge pull request #3413 from ricardosalveti/aboot

deploy: only set aboot/abootcfg when found

10 months agosysroot: Detect early on when /boot is on vfat
Colin Walters [Sun, 6 Apr 2025 21:24:26 +0000 (17:24 -0400)]
sysroot: Detect early on when /boot is on vfat

We do want to support this (as part of supporing the
Boot Loader Spec) but because we use symlinks in `/boot`,
can't yet.

Error out very early on consistently if we detect
vfat for /boot, but also add a member variable to keep track
of this in preparation for supporting it.

Signed-off-by: Colin Walters <walters@verbum.org>
10 months agodeploy: only set aboot/abootcfg when found
Ricardo Salveti [Tue, 15 Apr 2025 23:28:33 +0000 (20:28 -0300)]
deploy: only set aboot/abootcfg when found

Bootloader entry should only have aboot and abootcfg configuration
entries when aboot.img is found on the system (e.g.
/usr/lib/modules/$kver).

Otherwise it will be always set, won't be used during boot and
systemd-boot will complain about unknown lines.

Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
10 months agoMerge pull request #3416 from cgwalters/test-fixes
Colin Walters [Wed, 30 Apr 2025 14:20:58 +0000 (10:20 -0400)]
Merge pull request #3416 from cgwalters/test-fixes

Test fixes

10 months agotests/prune: Ensure /boot is big enough for 3 bootdata
Colin Walters [Wed, 30 Apr 2025 12:30:05 +0000 (08:30 -0400)]
tests/prune: Ensure /boot is big enough for 3 bootdata

The size of kernel+initramfs (bootdata) for FCOS has crept up
enough that it's *always* triggering this path, which perturbs
the test into incorrectly triggering early prune.

If we detect that /boot is too small, allocate a new loopback-mounted
copy.

10 months agotests/prune: Minor refactor and logging
Colin Walters [Wed, 30 Apr 2025 01:16:33 +0000 (21:16 -0400)]
tests/prune: Minor refactor and logging

- Add a shared modules_dir variable to avoid repetition
- Log size of kernel+initramfs
- Log df /boot around when we write and remove "bigfile"

Signed-off-by: Colin Walters <walters@verbum.org>
10 months agotests/auto-prune: Add logging for steps
Colin Walters [Wed, 30 Apr 2025 01:00:49 +0000 (21:00 -0400)]
tests/auto-prune: Add logging for steps

So it's a bit easier to find out which part of this code failed.

10 months agotests: Drop use of host_refspec
Colin Walters [Tue, 29 Apr 2025 22:16:31 +0000 (18:16 -0400)]
tests: Drop use of host_refspec

There's no refspec on FCOS now using containers.
We never needed a refspec for any of these, just the commit.